package com.yusys.pattern.regular.LODemeter.init.update;

import com.yusys.pattern.regular.LODemeter.init.Girl;

import java.util.List;

/**
 * 修改后GroupLeader 通过构造函数注入gril
 */
public class GroupLeader {
    private List<Girl> listGirls;

    public GroupLeader(List<Girl> listGirls) {
        this.listGirls = listGirls;
    }

    public void countGirls(){
        System.out.println("girls 数量：" + this.listGirls.size());
    }
}
